package com.oschina.action;

import com.oschina.common.Constants;
import com.oschina.service.inter.AlbumService;
import com.sun.xml.internal.bind.v2.runtime.reflect.opt.Const;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.log4j.Logger;
import org.aspectj.weaver.ast.Var;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

/**
 * Created by IntelliJ IDEA.
 * User:  valjean
 * Date:  2016/2/1
 * Time:  11:02
 * To change this template use File | Settings | File Templates.
 */
@Controller
@RequestMapping(value = Constants.API_PRE + "/album")
public class AlbumAction {

    protected Logger logger = Logger.getLogger(this.getClass());

    @Autowired
    private AlbumService albumService;

    @RequestMapping(value = "/test",method = RequestMethod.GET)
    @ResponseBody
    public String  test (){
        return albumService.test();
    }
    @RequestMapping(value = "/welcome.html")
    public String  welcome (){
        return null;
    }

}
